package com.hkemmm.shop.service.impl;

import com.hkemmm.shop.dao.CategoryMapper;
import com.hkemmm.shop.entity.Category;
import com.hkemmm.shop.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryService implements ICategoryService {
    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getGoodsCategory(Integer goodsId) {
        return categoryMapper.getGoodsCategory(goodsId);
    }
}
